package org.learn.spring5.service.impl;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

//增强类2
@Component
@Aspect
@Order(3)
public class UserServiceProxy2 {

    @Before(value ="execution(* org.learn.spring5.service.impl.UserServiceImpl.add(..))")
    public void before(){
    System.out.println("增强类2 before");
}
}
